<h1 class="pagetitle"><?php echo $entity['legend'];?></h1>
<div class="column1-unit">
	<form class="contactform" action="<?php echo $entity['action']; ?>" method="post">
		<fieldset> 
			<legend>Datos</legend>
			
			<?php
				foreach($entity['inputs'] as $input){
					if ($input['label']){
			?>		
				<p>
					<label for="<?php echo $input['name'];?>" class="left"><?php echo $input['label'];?></label>
					<input class="field" type="<?php echo $input['type'];?>" id="<?php echo $input['id'];?>" name="<?php echo $input['name'];?>" value="<?php echo $input['value'];?>" />			
				</p>
			<?php 	}else{  ?>
			    <p>
				<input class="field" type="<?php echo $input['type'];?>" id="<?php echo $input['id'];?>" name="<?php echo $input['name'];?>" value="<?php echo $input['value'];?>" />
				</p>
			<?php 	
					}	
				} 
			?>
			
			<input type="button" id="btnSave" name="btnSave" value="Guardar" class="button" /> <input type="button" id="btnCancel" name="btnCancel" value="Cancelar" class="button" />
		</fieldset>
	</form>
</div>
<?php if ($requiresScript){ ?>
	<script type="text/javascript"><?php echo $script;?></script>
<?php }?>